[pull] master from ruby:master#1018
Merged
Merged
Conversation
* ZJIT: Share a single JITFrame across all C method frames Replace the per-call JITFrame::new_cfunc allocation in gen_push_frame with a sentinel value (ZJIT_JIT_RETURN_C_FRAME) stored in cfp->jit_return. CFP_ZJIT_FRAME now returns a pointer to a single static rb_zjit_c_frame (pc/iseq both NULL) when it sees the sentinel. The CFP accessor is split into CFP_ZJIT_FRAME_P (predicate) and CFP_ZJIT_FRAME (typed accessor that dereferences safely) so callers don't have to know about the sentinel encoding. ISEQ frames are unchanged: they still hand cfp->jit_return a heap-allocated JITFrame pointer. * Move a pointer location for CFP_ZJIT_FRAME
This removes the discussion of included modules in refinements, since support for that was removed in Ruby 3.2. This switches the method lookup description to be ancestor-based instead of class-based, so it better reflects how the process actually works. Also discuss how super inside a refined module method is not allowed if the method was called via super from a refinement method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )